{foreach $fields as $field => $blocks}
<div>
	<strong>{$field} - Поле</strong>
	<div>
		{foreach $blocks as $block}
			<label><input {if $field != 0}checked="checked" {/if}type="checkbox" id="block[{$block->id}]" name="block[{$block->id}]" value="1" />{$block->Module->title}</label><br />
		{/foreach}
	</div>
</div>
{/foreach}